#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable:6031)
#include"voice.h"
void test1()
{
	SL* phead = Init();

	SLpushback(phead, 1);
	SLpushback(phead, 2);
	SLpushback(phead, 3);
	SLpushback(phead, 4);
	SLpushfront(phead, 1);
	SLpushfront(phead, 2);
	SLpushfront(phead, 3);
	SLpushfront(phead, 4);
	SLprint(phead);
	destroy(phead);
	phead = NULL;
}
void test2()
{
	SL* phead = Init();

	SLpushback(phead, 1);
	SLpushback(phead, 2);
	SLpushback(phead, 3);
	SLpushfront(phead, 1);
	SLpushfront(phead, 2);
	SLpushfront(phead, 3);
	SLpopback(phead);
	SLpopback(phead);
	SLpopback(phead);
	SLpopback(phead);
	SLpopback(phead);
	SLpopback(phead);
	SLprint(phead);
	destroy(phead);
	phead = NULL;
}
void test3()
{
	SL* phead = Init();

	SLpushback(phead, 1);
	SLpushback(phead, 2);
	SLpushback(phead, 3);
	SLpushfront(phead, 1);
	SLpushfront(phead, 2);
	SLpushfront(phead, 3);
	SLpopfront(phead);
	SLpopfront(phead);
	SLpopfront(phead);
	SLpopfront(phead);
	SLpopfront(phead);
	SLpopfront(phead);
	SLprint(phead);
	destroy(phead);
	phead = NULL;
}
void test4()
{
	SL* phead = Init();

	SLpushback(phead, 1);
	SLpushback(phead, 2);
	SLpushback(phead, 3);
	SLpushfront(phead, 1);
	SLpushfront(phead, 2);
	SLpushfront(phead, 3);
	SL* cur = SLfind(phead, 2);
	SLinsert(cur, 5);
	SLprint(phead);
	destroy(phead);
	phead = NULL;
}
int main()
{
	test4();
	return 0;
}